Skip to content

Conversation

Invincibear
Copy link

Fixes a TypeError when defining two endpoints in one routing declaration

@api.route('/hello', '/world')
class HelloWorld(Resource):
    pass

TypeError: Scaffold.route() takes 2 positional arguments but 3 were given

This works:

@api.route('/hello')
@api.route('/world')
class HelloWorld(Resource):
    pass

Fixes a TypeError when defining two endpoints in one routing declaration
@api.route('/endpoint1', 'endpoint2')
TypeError: Scaffold.route() takes 2 positional arguments but 3 were given
@ziirish ziirish force-pushed the master branch 2 times, most recently from 0db7d06 to 4eaf373 Compare November 1, 2022 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant